package com.iee.lambda.branchcontroller;

/**
 *@ClassName Demmo
 *@Description TODO
 *@Author longxiaonan@163.com
 *@Date 2021/12/9 0009 22:48
 */
public class Demmo {
    public static void main(String[] args) {
        VUtils.isTure(false).throwMessage("XXX不能为空");

        VUtils.isTureOrFalse(false).trueOrFalseHandle(() -> {
            System.out.println("true, 俺要开始秀了");
            throw new RuntimeException("123");
        }, () ->{
            System.out.println("false, 俺秀不动了");
            throw new RuntimeException("123");
        });

        VUtils.isBlankOrNoBlank("hello").presentOrElseHandle(System.out::println, () -> {
            System.out.println("空字符串");
        });
    }
}
